package cn.groupmarket.test.logicLink.model2.node;

import cn.groupmarket.api.response.Response;
import cn.groupmarket.test.logicLink.model2.factory.Rule02TradeRuleFactory;
import cn.groupmarket.types.design.framework.link.model2.handler.ILogicHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class Node02 implements ILogicHandler<String, Rule02TradeRuleFactory.DynamicContext, Response<String>> {
    @Override
    public Response<String> apply(String requestParameter, Rule02TradeRuleFactory.DynamicContext dynamicContext) throws Exception {
        log.info(dynamicContext.getAge());
        return Response.<String>builder()
                .code("0000")
                .info("hh")
                .data("你好")
                .build();
    }
}
